<template>
  <div class="home">
    <el-card class="welcome-card">
      <h1>欢迎使用 Vue 3 + TypeScript + Element Plus 项目模板</h1>
      <el-button type="primary" @click="handleClick">点击测试</el-button>
    </el-card>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { ElMessage } from 'element-plus'

export default defineComponent({
  name: 'Home',
  setup() {
    const handleClick = () => {
      ElMessage.success('Element Plus 集成成功！')
    }

    return {
      handleClick
    }
  }
})
</script>

<style lang="scss" scoped>
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  
  .welcome-card {
    width: 600px;
    text-align: center;
  }
}
</style> 